<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: j
  Date: 2021/11/22
  Time: 8:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/static/css/bootstrap.css">
    <script src="/static/js/jquery-3.2.1.js"></script>
    <script src="/static/js/bootstrap.js"></script>
    <title>Title</title>

</head>
<body>
    <form action="./add" method="post">
        订单编号:<input name="oid" value="${tbOrder.oid}" readonly="readonly">

        下单时间:<input type="text" name="odate" value="<fmt:formatDate value="${tbOrder.odate}" pattern="yyyy-MM-dd"></fmt:formatDate>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"><br>
        仓库:<input name="warsehouse" value="${tbOrder.warsehouse}">
        订货人:<input name="orderer" value="${tbOrder.orderer}"><br><br>
        库位:<input name="location" value="${tbOrder.location}">
        物流单号:<input name="trackingNumber" value="${tbOrder.trackingNumber}"><br><br>

        附件成本:<input name="cost" value="${tbOrder.cost}"><span id="sp_cost"></span><br><br>
        折让金额:<input name="discountAmount" value="${tbOrder.discountAmount}"><span id="sp_discountamount"></span>
        制单人:<input name="credit" value="${user.userName}"><br><br>
        交货方式:
        <select name="way">
            <option value="送货上门" ${tbOrder.way=='送货上门'?'selected':''}>送货上门</option>
            <option value="自主取货" ${tbOrder.way=='自主取货'?'selected':''}>自主取件</option>
        </select>

        交货地点:<input name="address" value="${tbOrder.address}"><br><br>


        <input type="button" value="提交" onclick="tj()">
    </form>
<script>
    function tj(){
        var url="./update?"+$("form").serialize();
        $("#nav-tabContent").load(url);
    }


</script>
</body>
</html>
